<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">

<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">


                    <span style="color: red;line-height: 50px;height: 50px; font-weight: bolder;font-size: 25px;">|&nbsp;&nbsp;</span><span
                        style="font-weight:bolder;font-size: 18px;">会员管理</span><br/>


                    <form class="form-inline">

                        <div class="form-group">
                            <div class="btn-group btn-group-sm" style="padding-right:0;">

                                <button style="width:240px" class="btn btn-default daterange daterange-time btn-sm"
                                        type="button"><span
                                        class="date-title">注册时间</span></button>
                                <button class="btn btn-default btn-sm" type="button" placeholder="注册时间"><i
                                        class="fa fa-remove"></i></button>
                            </div>


                        </div>

                        <div class="form-group">

                            <div class="input-group">

                                <div class="input-group-select">

                                    <select name="followed" class="form-control">

                                        <option value="">关注</option>

                                        <option value="0">未关注</option>

                                        <option value="1">已关注</option>

                                        <option value="2">取消关注</option>

                                    </select>

                                </div>

                            </div>
                        </div>


                        <div class="form-group">
                            <div class="input-group-select">

                                <select name="level" class="form-control">

                                    <option value="">等级</option>


                                    <option value="1">平台会员</option>


                                    <option value="2">VIP贵宾</option>


                                </select>

                            </div>

                        </div>

                        <div class="form-group">
                            <div class="input-group-select">

                                <select name="groupid" class="form-control">

                                    <option value="">分组</option>


                                    <option value="1">平台会员</option>


                                    <option value="2">子管理员</option>


                                    <option value="3">高级管理员</option>


                                    <option value="4">合作商家</option>


                                </select>

                            </div>
                        </div>


                        <div class="form-group">


                            <div class="input-group-select">

                                <select name="isblack" class="form-control" style="padding-right: -10px">

                                    <option value="">黑名单</option>

                                    <option value="0">否</option>

                                    <option value="1">是</option>

                                </select>

                            </div>

                        </div>

                        <div class="form-group pull-right">
                            <div class="input-group">
                                <input type="text" class="form-control " name="realname" value="" style="width: 200px;"
                                       placeholder="可搜索昵称/姓名/手机号/ID">
                                <div class="input-group-btn">
                                    <button class="btn  btn-primary" type="submit"> 搜索</button>

                                    <button type="submit" name="export" value="1" class="btn btn-success ">导出</button>

                                </div>


                            </div>

                        </div>


                    </form>




                    <div class="" style="margin: 20px 0px;padding-left: 15px">
                        <input type="checkbox">

                        <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle="batch"
                                data-href="https://houtai.hcywatch.com/web/index.php?c=site&amp;a=entry&amp;m=ewei_shopv2&amp;do=web&amp;r=member.list.setblack&amp;isblack=1"
                                disabled="disabled">

                            <i class="fas fa-user-times"></i>
                            设置黑名单

                        </button>

                        <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle="batch"
                                data-href="https://houtai.hcywatch.com/web/index.php?c=site&amp;a=entry&amp;m=ewei_shopv2&amp;do=web&amp;r=member.list.setblack&amp;isblack=0"
                                disabled="disabled">



                            <i class="fas fa-user-minus"></i> 取消黑名单

                        </button>


                        <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle="batch-remove"
                                data-confirm="确认要删除?"
                                data-href="https://houtai.hcywatch.com/web/index.php?c=site&amp;a=entry&amp;m=ewei_shopv2&amp;do=web&amp;r=member.list.delete"
                                disabled="disabled">


                            <i class="fas fa-trash-alt"></i>
                            批量删除

                        </button>


                        <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle="batch-group"
                                disabled="disabled"><i class="fas fa-users-cog"></i>修改分组
                        </button>

                        <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle="batch-level"
                                disabled="disabled">

                            <i class="fas fa-layer-group"></i> 修改等级
                        </button>

                    </div>


                   <!-- <div id="toolbar" class="toolbar">
                        &lt;!&ndash;{:build_toolbar('del')}&ndash;&gt;

                      &lt;!&ndash;  <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled" title="删除" id="del"><i
                                class="fa fa-trash">删除</i></a>&ndash;&gt;

                        <div class="dropdown btn-group {:$auth->check('user/user/multi')?'':'hide'}">
                            &lt;!&ndash;<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>&ndash;&gt;
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                       data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a>
                                </li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;"
                                       data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to
                                    hidden')}</a></li>
                            </ul>
                        </div>
                    </div>-->

                    <table class="table table-striped table-bordered table-hover"
                           data-operate-edit="{:$auth->check('user/user/edit')}"
                           data-operate-del="{:$auth->check('user/user/del')}"
                           width="100%">
                        <thead>
                        <tr>
                            <th class="bs-checkbox " style="text-align: center; vertical-align: middle; width: 36px; ">
                                <div class="th-inner">
                                    <input class="btSelectAll" type="checkbox">
                                </div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">粉丝</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">等级/标签组</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">姓名</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">手机号</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">注册时间</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">积分</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle;">
                                <div class="th-inner sortable both">余额</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; width: 250px;">
                                <div class="th-inner sortable both">操作</div>
                                <div class="fht-cell"></div>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach $list as $key=>$vo}
                        <tr data-index='{$key}'>
                            <td class="bs-checkbox " style="padding-top: 30px">
                                <input data-index="{$key}" name="btSelectItem" type="checkbox" >
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                <a href="{$vo.avatar}" target="_blank">
                                    <img class="img-sm img-center" src="{$vo.avatar}">
                                </a>
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.group.name}</td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.nickname}</td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.mobile}</td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.createtime}</td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.score}</td>
                            <td style="text-align: center; vertical-align: middle; ">{$vo.banlance}</td>
                            <td>
                                <div style="width: 55px;float: left;padding-bottom: 10px" class="text-center">
                                    <a href="/admin/user/user/edit/ids/{$vo.id}">
                                        &nbsp; <img class="img-responsive center-block" src="/assets/icon/edit.png"
                                                    style="width: 25px;margin-left: 15px;">
                                        <span style="color: black;font-size: 12px">会员详情</span>
                                    </a>
                                </div>
                                <div style="width: 55px;float: left;padding-bottom: 10px" class="text-center">
                                    <a href="javascript:;">
                                        &nbsp;<img class="img-responsive center-block" src="/assets/icon/record.png"
                                                   style="width: 25px;margin-left: 15px;">
                                        <span style="color: black;font-size: 12px">会员订单</span>
                                    </a>
                                </div>
                                <div style="width: 55px;float: left;padding-bottom: 10px"  class="text-center" >
                                    <a href="javascript:;">
                                        &nbsp;<img class="img-responsive " src="/assets/icon/finance.png"
                                                   style="width: 25px;margin-left: 15px;">
                                        <span  style="color: black;font-size: 12px">充值</span>
                                    </a>
                                </div>
                                <div style="width: 55px;float: left;padding-bottom: 10px" class="text-center">
                                    <a href="/admin/user/user/del/ids/{$vo.id}">
                                        &nbsp; <img class="img-responsive center-block" src="/assets/icon/del.png"
                                                    style="width: 25px;margin-left: 15px;">
                                        <span style="color: black;font-size: 12px">删除会员</span>
                                    </a>
                                </div>

                            </td>
                        </tr>


                        {/foreach}
                        </tbody>
                    </table>
                    <style>
                        .pagination {
                            margin: 17px 40%
                        }
                    </style>
                    <div> {if isset($page)}{$page}{/if}</div>

                </div>
            </div>

        </div>
    </div>
</div>
